package cn.crex1.xiaomi.pojo;

import java.util.Date;

/**
 * 《预订单》 订单表，用户选购好商品时确定选好自动生成订单编号 可查询订单信息。 与用户表有关联
 * 
 * @author 云哥
 *
 */
public class Order {

	private Integer order_id; // 订单ID

	private Long order_number;// 订单编号,系统生成

	private Integer user_id;// 用户ID

	private Integer pay_type;// 支付方式 0=线下支付，1=在线支付

	private Integer shipment_time;// 配送时间 1=不限送货时间，2=工作日送货，3=双休日、假日送货

	private Integer shipment_type;// 配送方式 0=快递配送（免运费），1=快递配送（运费）

	private Double shipment_amount;// 快递费

	private Integer invoice_type;// 支付方式 1=不开发票，2=电子发票，3=普通发票

	private String invoice_title;// 发票抬头

	private Integer order_status;// 订单状态 （显示支付或者未支付）

	private Date create_time;// 创建时间

	private Date update_time;// 更新时间

	private Double order_amount;// 订单金额=商品数量价格和+每件单品商品价格

	private Integer order_score;// 订单积分=订单金额

	private Double pay_amount;// 支付金额 = 订单金额 + 快递费

	private Integer buy_number;// 商品总数量

	public int getOrder_id() {
		return order_id;
	}

	public void setOrder_id(int order_id) {
		this.order_id = order_id;
	}

	public Long getOrder_number() {
		return order_number;
	}

	public void setOrder_number(Long order_number) {
		this.order_number = order_number;
	}

	public int getUser_id() {
		return user_id;
	}

	public void setUser_id(int user_id) {
		this.user_id = user_id;
	}

	public int getPay_type() {
		return pay_type;
	}

	public void setPay_type(int pay_type) {
		this.pay_type = pay_type;
	}

	public int getShipment_time() {
		return shipment_time;
	}

	public void setShipment_time(int shipment_time) {
		this.shipment_time = shipment_time;
	}

	public int getShipment_type() {
		return shipment_type;
	}

	public void setShipment_type(int shipment_type) {
		this.shipment_type = shipment_type;
	}

	public double getShipment_amount() {
		return shipment_amount;
	}

	public void setShipment_amount(double shipment_amount) {
		this.shipment_amount = shipment_amount;
	}

	public int getInvoice_type() {
		return invoice_type;
	}

	public void setInvoice_type(int invoice_type) {
		this.invoice_type = invoice_type;
	}

	public String getInvoce_title() {
		return invoice_title;
	}

	public void setInvoce_title(String invoce_title) {
		this.invoice_title = invoce_title;
	}

	public int getOrder_status() {
		return order_status;
	}

	public void setOrder_status(int order_status) {
		this.order_status = order_status;
	}

	public Date getCreate_time() {
		return create_time;
	}

	public void setCreate_time(Date create_time) {
		this.create_time = create_time;
	}

	public Date getUpdate_time() {
		return update_time;
	}

	public void setUpdate_time(Date update_time) {
		this.update_time = update_time;
	}

	public double getOrder_amount() {
		return order_amount;
	}

	public void setOrder_amount(double order_amount) {
		this.order_amount = order_amount;
	}

	public int getOrder_score() {
		return order_score;
	}

	public void setOrder_score(int order_score) {
		this.order_score = order_score;
	}

	public double getPay_amount() {
		return pay_amount;
	}

	public void setPay_amount(double pay_amount) {
		this.pay_amount = pay_amount;
	}

	public int getBuy_number() {
		return buy_number;
	}

	public void setBuy_number(int buy_number) {
		this.buy_number = buy_number;
	}

	@Override
	public String toString() {
		return "Order [order_id=" + order_id + ", order_number=" + order_number + ", user_id=" + user_id + ", pay_type=" + pay_type + ", shipment_time=" + shipment_time + ", shipment_type=" + shipment_type + ", shipment_amount=" + shipment_amount + ", invoice_type=" + invoice_type + ", invoce_title=" + invoice_title + ", order_status=" + order_status + ", create_time=" + create_time + ", update_time=" + update_time + ", order_amount=" + order_amount + ", order_score=" + order_score + ", pay_amount=" + pay_amount + ", buy_number=" + buy_number + "]";
	}

}
